#ifndef CATALOG_H
#define CATALOG_H

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

typedef struct Node{
    struct Node *next_node;
    char data[50];
}Node_t;

typedef struct Link_list{
    struct Node *head;
    struct Node *tail;
    int length;
}Link_list_t;

int init_list(Link_list_t *catalog);
int add_catalog(Link_list_t *catalog,char *buf);
int delete_catalog(Link_list_t *catalog);
int printf_Linklist(Link_list_t *catalog);
#endif
